//
// Created by A on 2024/6/22.
//

#include "config.h"
SDL_Window *window;  //窗口
SDL_Renderer *ren ;  //渲染器
TTF_Font * font; //字体
char fps_num[20]="FPS:"; //FPS值

SDL_Event event;//事件处理
uint64_t timeclock=0; //用于控制帧率
uint64_t time_begin=0;//用于帧率统计
uint64_t time_end=0;

//控制==========================================
int speed_X=0;
int speed_Y=0;
//资源==========================================
std::string  Mapfile = ResourcesPath MapPath ;
std::string  Leadfile = ResourcesPath leadPath ;


//碰撞=========================================

//精灵=========================================

LNode* Spirit_Link;   //精灵链表

//地图=========================================
SDL_Texture *Mapfiletex; //地图
Map_init map_fun[map_initfunsize];




//调试暂时这样存储
SDL_Rect grass={
        .x =0,
        .y =0,
        .w =72,
        .h =72
};
SDL_Rect road={
        .x =0,
        .y =192,
        .w =24,
        .h =24
};
SDL_Rect water={
        .x =72,
        .y =120,
        .w =24,
        .h =24
};
SDL_Rect Lotus_leaf={
        .x =96,
        .y =120,
        .w =24,
        .h =24
};
SDL_Rect grass_road={
        .x =24,
        .y =192,
        .w =24,
        .h =24
};

